package com.icangya.Utils;

public class SumPageNum {

    public static Long getSumPageNum(Long total , Integer pageSize){
        if(total % pageSize != 0){
            double sum = Math.ceil(Double.valueOf(total)/pageSize);
            return (long) sum;
        }else {
            return (long)(Double.valueOf(total)/pageSize);
        }
    }
}
